let admin={
  data:[
    {
      menuid: 1,
      icon: 'icon-gerenzhongxin',
      menuname: '用户管理',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '学员管理',
          hasThird: 'N',
          url: 'admin/studentManage',
          menus: null
        },
        {
          menuid: 2,
          icon: '',
          menuname: '教练管理',
          hasThird: 'N',
          url: 'admin/coachManage',
          menus: null
        },
        
      ]
    },
    {
      menuid: 3,
      icon: 'icon-kaoshizhongxinon',
      menuname: '考试管理',
      hasThird: null,
      url: null,
      menus: [
        
        {
          menuid: 4,
          icon: '',
          menuname: '考试申请',
          hasThird: 'N',
          url: 'admin/userShenQing',
          menus: null
        },
        
      ]
    },
    {
      menuid: 3,
      icon: 'icon-pingjia',
      menuname: '评价管理',
      hasThird: null,
      url: null,
      menus: [
        
        {
          menuid: 4,
          icon: '',
          menuname: '学员评价',
          hasThird: 'N',
          url: 'admin/studentsPingjia',
          menus: null
        },
        {
          menuid: 4,
          icon: '',
          menuname: 'ADMIN评价',
          hasThird: 'N',
          url: 'admin/coachPingjia',
          menus: null
        },
        
      ]
    },
    {
      menuid: 3,
      icon: 'icon-yemian',
      menuname: '页面管理',
      hasThird: null,
      url: null,
      menus: [
        
        {
          menuid: 4,
          icon: '',
          menuname: '轮播图管理',
          hasThird: 'N',
          url: 'admin/banner',
          menus: null
        },
        {
          menuid: 4,
          icon: '',
          menuname: '公告管理',
          hasThird: 'N',
          url: 'admin/noticeManage',
          menus: null
        },
        {
          menuid: 4,
          icon: '',
          menuname: '留言管理',
          hasThird: 'N',
          url: 'admin/feedback',
          menus: null
        },
        
      ]
    },
  ]
}
let student={
  data:[
      {
      menuid: 1,
      icon: 'icon-xueyuanzhongxin',
      menuname: '个人中心',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '个人信息',
          hasThird: 'N',
          url: 'person/personal',
          menus: null
        }
      ]
    },
    {
      menuid: 1,
      icon: 'icon-kaoshizhongxinon',
      menuname: '考试中心',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '考试提交',
          hasThird: 'N',
          url: 'student/textapple',
          menus: null
        }
      ]
    },
    {
      menuid: 1,
      icon: 'icon-xuexixingqu',
      menuname: '学车管理',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '教练预约',
          hasThird: 'N',
          url: 'student/orderCoach',
          menus: null
        },
        {
          menuid: 2,
          icon: '',
          menuname: '在线约车',
          hasThird: 'N',
          url: 'student/onlingCar',
          menus: null
        },
        {
          menuid: 2,
          icon: '',
          menuname: '我的预约',
          hasThird: 'N',
          url: 'student/myOrder',
          menus: null
        },
      ]
    },
    {
      menuid: 1,
      icon: 'icon-pingjia',
      menuname: '评价管理',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '我的评价',
          hasThird: 'N',
          url: 'student/myEvaluate',
          menus: null
        }
      ]
    },
  ]
}
let coach={
  data:[
    {
      menuid: 1,
      icon: 'icon-xueyuanzhongxin',
      menuname: '个人中心',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 2,
          icon: '',
          menuname: '个人信息',
          hasThird: 'N',
          url: 'person/personal',
          menus: null
        },
        
      ]
    },
    {
      menuid: 3,
      icon: 'icon-yingyong',
      menuname: '应用中心',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 4,
          icon: '',
          menuname: '发布计划',
          hasThird: 'N',
          url: 'coach/addSubject',
          menus: null
        },
        {
          menuid: 4,
          icon: '',
          menuname: '预约结果',
          hasThird: 'N',
          url: 'coach/orderResult',
          menus: null
        },
      ]
    },
    {
      menuid: 3,
      icon: 'icon-pinglun',
      menuname: '对我评价',
      hasThird: null,
      url: null,
      menus: [
        {
          menuid: 4,
          icon: '',
          menuname: '学员评价',
          hasThird: 'N',
          url: 'coach/studentPingjia',
          menus: null
        },
        {
          menuid: 4,
          icon: '',
          menuname: '驾校评价',
          hasThird: 'N',
          url: 'coach/adminPingjia',
          menus: null
        }
      ]}
  ]
}
const judgeRole=(roleid)=>{
    if(roleid==1){
        return admin.data;
    }
    if(roleid==2){
      return student.data;
    }
    if(roleid==3){
      return coach.data;
    }
}
export{
    judgeRole         //判断用户访问路径
}